/**
 * Licensed to CMIM,Inc. under the terms of the CMIM * Software License version 1.0.
 * See the NOTICE file distributed with this work for additional * information regarding copyright ownership.
 * ---------------------------------------------------------------------------- * Date Author Version
 * 2019/3/16 neusoft 1.0
 **/

package com.xnyzc.lhy.task.task.order;

import com.xnyzc.lhy.task.fallback.order.FlightOrderServiceImpl;
import com.xnyzc.lhy.task.fegin.driver.QuartzDriverCashWithdrawalService;
import com.xnyzc.lhy.task.fegin.driver.QuartzDriverEarlyWarningService;
import com.xnyzc.lhy.task.fegin.driver.QuartzDriverWorkStatisticsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @Author: sunzheng
 * @Date: 2020-08-25
 * @Description 接机-航班时间变动提醒司机
 */

@Slf4j
@Component("quartzFlightOrder")
public class QuartzFlightOrder {


    @Autowired
    private QuartzDriverEarlyWarningService quartzDriverEarlyWarningService;

    @Autowired
    FlightOrderServiceImpl flightOrderService;

    /**
     * 司机已接单或者前往预约地点订单的预警(每一分钟)
     */
    @Scheduled(cron = "0 */5 * * * ?")
    public void flightOrder() {

        log.info("===========开始处理接机订单航班时间变动提醒==========");
        flightOrderService.flightOrder();
        log.info("===========结束处理接机订单航班时间变动提醒===========");

    }


}
